/**
 * 读取图片
 * @param Path 图片路径
 */
export default function ReadImage(Path: string): Promise<HTMLImageElement> {
	return new Promise((Send, Error) => {
		var img = new Image();
		img.src = Path;
		img.onload = function () { Send(img); };
		img.onerror = function (err) { Error(err); };
	});
}
